<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2 col-sm-offset-10">
            <button class="btn btn-block btn-info" ng-click="add()">添加广告</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
              <tr>
                <th class="col-md-2 text-center">标题</th>
                <th class="col-md-2 text-center">类型</th>
                <th class="col-md-2 text-center">状态</th> 
                <th class="col-md-2 text-center">启用/禁用</th>                 
                <th class="col-md-1 text-center">可获积分</th>
                <th class="col-md-1 text-center">帮助人可获积分</th>
                <th class="col-md-2 text-center">操作</th>
                
              </tr>
            </thead>
            <tbody>
              <tr ng-repeat="obj in objs">
                <td class="text-center">{{obj.title}}</td>
                <td class="text-center">
                    <p class="" ng-show="obj.type == '1'">公众号图文</p>
                    <p class="" ng-show="obj.type == '2'">公众号</p>
                    <p class="" ng-show="obj.type == '3'">定义图文</p>
                    <p class="" ng-show="obj.type == '4'">摇一摇</p>                    
                </td>
                <td class="text-center">
                    <p class="" ng-show="obj.state == '1'">启用</p>
                    <p class="" ng-show="obj.state == '0'">禁用</p>
                </td> 
                <td class="">
                    <label class="i-switch bg-success" ng-init="obj.isSelected" style="margin-left:40%">
                        <input type="checkbox" ng-model="obj.isSelected" ng-change="onChange(obj.isSelected, obj.id, obj.state)">
                        <i></i>
                    </label>
                    <!--<input
                        bs-switch
                        type="checkbox" 
                        ng-model="obj.isSelected"
                        switch-size="mini"
                        ng-change = "onChange(obj.isSelected,obj.id,obj.state)"
                        > -->
                </td>
                <td class="text-center">{{obj.integral}}</td>
                <td class="text-center">{{obj.integral_help}}</td>
                <td class="text-center">
                  <a ng-click="edit(obj)" class="btn btn-info btn-xs">编辑</a>
                  <a ng-click="delete(obj.id)" class="btn btn-danger btn-xs">删除</a>
                </td>
              </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>
